package cn.lili.modules.goods.service;

import cn.lili.common.vo.ResultMessage;
import cn.lili.modules.goods.entity.dos.GoodsHotPopular;
import cn.lili.modules.goods.entity.dto.GoodsHotPopularDTO;
import cn.lili.modules.goods.entity.vos.GoodsVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 爆款商品 服务类
 * </p>
 *
 * @author author
 * @since 2024-02-27
 */
public interface GoodsHotPopularService extends IService<GoodsHotPopular> {

    /**
     * 保存新款爆火商品配置
     * @param goodsHotPopularList
     * @return
     */
    ResultMessage<Object> addHotPopularGoodsBatch(List<GoodsHotPopular> goodsHotPopularList);

    /**
     * 删除新品爆款商品
     * @param
     * @return
     */
    ResultMessage<Object> deleteHotPopularGoods(List<GoodsHotPopular> goodsHotPopularList);

    /**
     * 更新新品爆款商品
     * @param goodsHotpopular
     * @return
     */
    ResultMessage<Object> updateHotPopularGoods(GoodsHotPopular goodsHotpopular);


    /**
     * PC端分页获取新品爆款商品列表
     * @param dto
     * @return
     */
    Page<GoodsHotPopular> getHotPopularGoodsPageList(GoodsHotPopularDTO dto);

    /**
     * APP分页获取新品爆款商品列表
     * @param dto
     * @return
     */
    Page<GoodsVO> getHotPopularGoodsAppList(GoodsHotPopularDTO dto);
}
